package com.du.fileload.framework.config;

public class DFileCompressRatio {

    private long limitLen;
    private String name;
    private String size;

    private String width;
    private String height;
    private Float quality;

    public long getLimitLen() {
        return limitLen;
    }

    public void setLimitLen(long limitLen) {
        this.limitLen = limitLen;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        if(size.contains("x")){
            String[] sizel=size.split("x");
            setWidth(sizel[0]);
            setHeight(sizel[1]);
        }
        this.size = size;
    }

    public Float getQuality() {
        return quality;
    }

    public void setQuality(Float quality) {
        this.quality = quality;
    }



    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }
}
